<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateLiveBroadcastRoomTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('live_broadcast_room', function (Blueprint $table) {
            $table->increments('id');
            $table->string('live_broadcast_room_title')->nullable()->comment('直播间标题');
            $table->string('live_broadcast_room_text')->nullable()->comment('直播间描述');
            $table->string('live_broadcast_room_img')->nullable()->comment('直播间封面');
            $table->integer('live_goods_id')->nullable()->comment('直播商品');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('live_broadcast_room');
    }
}
